<script setup>
import { useRouter } from 'vue-router';
const $router = useRouter()
const goHome = () => {
    $router.push('/home')
}
</script>
<template>
    <div class="box">
        <img src="../../assets/images/error_images/404.png" alt="">
        <el-button type="primary" plain size="default" @click="goHome">首页</el-button>
    </div>
</template>
<style lang="scss" scoped>
.box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    img {
        width: 600px;
        height: 300px;
    }
}
</style>